﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp2
{
    class Vehicle
    {
        public double speed;//速度
        public double size;//体积
        public Vehicle(double Speed,double Size)
        {
            this.speed = Speed;
            this.size = Size;
        }

        //移动
        public void move(double b)
        {
            Console.WriteLine("该车行驶了{0}米");
        }

        //设置速度
        public void setSpeed(int speed)
        {
            this.speed = speed;
        }

        //加速
        public void speedUp()
        {

        }

        //减速
        public void speedDown()
        {

        }
    }
}
